package com.SpringBoot.brand.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 品牌表
 * </p>
 *
 * @author bxk
 * @since 2025-09-15
 */
@Data
@TableName("brand")
public class Brand implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 品牌主键
     */
    @TableId(value = "brand_id", type = IdType.AUTO)
    private Integer brandId;

    /**
     * 品牌名
     */
    private String name;

    /**
     * 0-启用 1-未启用
     */
    private Integer status;

    /**
     * 品牌图片路径
     */
    private String url;

    private String description;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "Brand{" +
            "brandId=" + brandId +
            ", name=" + name +
            ", status=" + status +
            ", url=" + url +
        "}";
    }
}
